<h1>Listing lines</h1>

<table>
  <tr>
    <th>Line</th>
  </tr>

<% for line in @lines %>
  <tr>
    <td><%=h line.line %></td>
    <td><%= link_to 'Show', line %></td>
    <td><%= link_to 'Edit', edit_line_path(line) %></td>
    <td><%= link_to 'Destroy', line, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New line', new_line_path %>
